package top.wshape1.rpc.message;

import lombok.*;

/**
 * @author Wshape1
 * @version 1.0
 * @description
 * @since 2024-02-02
 */

@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
public class RpcRequest extends RpcMessage {

    /**
     * 接口的全类名
     */
    private String className;

    private String methodName;

    private Class<?> returnType;

    private Class<?>[] paramTypes;

    private Object[] args;

    @Override
    public int getMessageType() {
        return MessageType.RPC_REQUEST.ordinal();
    }

    private static final long serialVersionUID = 1L;

}
